<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
	</head>
	<body>
		<div id="app">
			<display>Vue标题</display>
		</div>
		
		<template id="display-module">
			<div>
				<h1>子组件</h1>
				<slot></slot>
			</div>
		</template>
		
		<script>
			var app = Vue.createApp({
				data(){
					return {
						message:"Hello World!",
					}
				}
			})
			app.component('display',{
				template: '#display-module'
			})
			var vm = app.mount("#app")
		</script>
	</body>
</html>
